NAME=facedetect-cv
CC=g++
OPTS=-O3 -march=native
INCS=-I/usr/include/opencv4
LIBS=-L/usr/lib64 -lopencv_core -lopencv_objdetect -lopencv_imgcodecs

facedetect-cv:	facedetect-cv.cpp facemask-cv.cpp Makefile
		${CC} -c -o facedetect-cv.o facedetect-cv.cpp ${INCS}
		${CC} -o facedetect-cv facedetect-cv.o ${LIBS}
		${CC} -c -o facemask-cv.o facemask-cv.cpp ${INCS}
		${CC} -o facemask-cv facemask-cv.o ${LIBS} -lopencv_imgproc
clean:		
		rm -f facedetect-cv
		rm -f facedetect-cv.o
		rm -f facemask-cv
		rm -f facemask-cv.o
install:	
		cp facedetect-cv /usr/bin/facedetect-cv
		cp facemask-cv /usr/bin/facemask-cv
